<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>健康打卡系统</title>
    <link rel="stylesheet" type="text/css" href="/css/login.css">
</head>
<body>
<div class="content">
    <div class="logCon">
        <form modelattribute="person" action="/admin/updatePerson" method="post">
            <p>修改用户信息</p>
            <div class="line"><span>姓名:</span>
                <input class="bt_input" type="text" name="name" th:value="${person.getName()}" required="">
            </div>
            <div class="line"><span>账号:</span>
                <input class="bt_input" type="text" name="personId" readonly="true" th:value="${person.getPersonId()}" required="">
            </div>
            <div class="line"><span>密码:</span>
                <input class="bt_input" type="text" name="text" th:value="${person.getPassword()}" required="">
            </div>
            <div class="line"><span>用户类型:</span>
                <select class="bt_input" style="height: 38px" name="flag">
                    <option value="0">普通用户</option>
                    <option value="1">管理员用户</option>
                </select>
            </div>
            <button class="logingBut" type="submit">提交</button>
        </form>
        <form action="/admin/personList" method="post">
            <button type="submit" class="logingBut">取消</button>
        </form>
    </div>
</div>
</body>
</html>